<!DOCTYPE html>
<html>
<head>
<h1 style="text-align:center;font-family:arial;color:block;letter-spacing:2px;"><font size="50">小学生答题测试系统</font></h1>
	<p style="text-align:center;word-spacing:5px">
	<font size="6">
    <a href="/introduce.html">首页</a>&nbsp;
    <a href="/classes.html">教学班</a>&nbsp;&nbsp;
    <a href="/student.html">学生</a>&nbsp;&nbsp;
    <a href="/teacher.html">老师</a>&nbsp;&nbsp;
    <a href="/course.html">课程</a>&nbsp;&nbsp;
    <a href="/question.html">题库</a>&nbsp;&nbsp;
    <a href="/exam.html">测验</a>&nbsp;&nbsp;
    <a href="/loginUser.html">登录</a>&nbsp;&nbsp;
     <a href="/logout.html">退出</a>&nbsp;&nbsp;
    </font>
    </p>
    

  
<div style="border-style:solid; border-color:#98bf21;width:400; height:150">
<table width=700 height=150 align="center">
  <tr>
    <th>老师ID</th>
    <th>老师工号</th>
    <th>老师名字</th>
     <th>其他功能</th>
  </tr>

  <#list teacherlist as te>
  <tr align="center">
  <td>${te.teacherId}</td>
  <td>${te.teacherNumber}</td>
  <td>${te.teacherName}</td>
  
  <td><a href="/teacher/delete?id=${te.teacherId}">删除</a></td>
  </tr>
  </#list>
</table>
<div style="text-align:center;font-family:arial;color:block;letter-spacing:2px;">
<input id="flip"   type="button"  value="新建" style="center" onclick="d()">
</p>
<form class="tab2" id="tab2" method="post" action="teacher/insert" style="display:none">
   <label>老师ID:</label><input type="text" id="teacherId" name="teacherId"><br>
   <label>老师Number:</label><input type="text" id="teacherNumber" name="teacherNumber"><br>
   <label>老师名字:</label><input type="text" id="teacherName" name="teacherName"><br>
   <label>老师密码:</label><input type="password" id="teacherPassword" name="teacherPassword"><br>
   <input type="submit" id="submit" value="提交" >
   <input type="button" id="close"  value="关闭">
 </form>
 </font>
 </p>
</div>
<div style="text-align:center;font-family:arial;color:block;letter-spacing:2px;">
<input id="flip"   type="button"  value="修改" style="center" onclick="c()">
</p>
<form class="tab2" id="tab1" method="post" action="teacher/update" style="display:none">
   <label>老师ID:</label><input type="text" id="teacherId" name="teacherId"><br>
   <label>老师Number:</label><input type="text" id="teacherNumber" name="teacherNumber"><br>
   <label>老师名字:</label><input type="text" id="teacherName" name="teacherName"><br>
   <label>老师密码:</label><input type="password" id="teacherPassword" name="teacherPassword"><br>
   <input type="submit" id="submit" value="提交" >
   <input type="button" id="close"  value="关闭">
 </form>
 </font>
 </p>
</div>
<script>
function c(){
    var a=document.getElementById("tb1");
   tab1.style.display=(tab1.style.display=="none"?"":"none");
}
function d(){
    var a=document.getElementById("tb2");
   tab2.style.display=(tab2.style.display=="none"?"":"none");
}
</script>
